package com.wkh.maker.template.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wangkehua
 * 模板文件的配置
 */
@Data
public class TemplateMakerModelConfig {
    private List<ModelInfoConfig> models;

    private ModelGroupConfig modelGroupConfig;
    @Data
    @NoArgsConstructor
    public static class ModelInfoConfig {
        private String path;
        private String fieldName;
        private String type;
        private String description;
        private Object defaultValue;
        private String abbr;

        //用于替换哪些文本
        private String replaceText;
    }

    /**
     * 分组配置
     */
    @Data
    @NoArgsConstructor
    public static class ModelGroupConfig {
        private String condition;
        private String groupName;
        private String groupKey;
        private String type;
        private String description;
    }
}
